package ModelLayer;
import java.util.ArrayList;

public class Order
{
    private int orderNo;
    private int status;
    private double totalPrice;
    private String date;
    private int discount;
    private Customer customer;
    private Salesman salesMan;
    private ArrayList<Product> productList;
        
    public Order(int inputOrderNo, int inputStatus, String inputDate, int inputDiscount)
    {
        this.orderNo = inputOrderNo;
        this.status = inputStatus;
        this.totalPrice = 0.0;
        this.date = inputDate;
        this.discount = inputDiscount;
        this.customer = null;
        this.salesMan = null;        
        productList = new ArrayList<Product>();
    }

    public int getOrderNo()
    {
        return orderNo;
    }
    
    public int getStatus()
    {
        return status;
    }
    
    public double getTotalPrice()
    {
        return totalPrice;
    }
    
    public String getDate()
    {
        return date;
    }
    
    public int getDiscount()
    {
        return discount;
    }
    
    public Customer getCustomer()
    {
        return customer;
    }
    
    public Salesman getSalesMan()
    {
        return salesMan;
    }
    
    public void setCustomer(Customer customer)
    {
        this.customer = customer;
    }
    
    public void setSalesMan(Salesman salesMan)
    {
        this.salesMan = salesMan;
    }
    
    public void addProduct(Product product)
    {
        productList.add(product);
    }
}